package com.spider.literal;

/**
 * 目标掌握常见字面量的书写格式
 */
public class LiteralDemo {
    public static void main(String[] args) {
        printLiteral();
    }
    public static void printLiteral()
    {
        //请帮我直接输出常见的字面量
        System.out.println(true);
        System.out.println(false);
        System.out.println(1);
        System.out.println(1.0);
        System.out.println('a');
        System.out.println("hello world");
        System.out.println(1L);
        System.out.println(1.0f);
        System.out.println(1.0d);
        System.out.println(1.0e-2);
        System.out.println(1.0e+2);
        System.out.println(0x10);
        System.out.println(0b10);
        System.out.println(0b1010);
        System.out.println(0b1010_1010);
    }
}

